package com.java复习.demo1;

import java.text.SimpleDateFormat;

/*
基本转换
byte<short<int<long<float<double

*/
public class Demo1 {
    public static void main(String[] args) {
        System.out.println("hello world");
//        获取时间戳
        long time = System.currentTimeMillis();
        System.out.println(time);
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String date = format.format(time);
        System.out.println(date);

    }
}
